//这个项目貌似没有登录
// post 传参是data
// get  传参是params
import request from "@/utils/request";
// 获取活动列表
export const getActivitysListAPI = () => {
  return request({
    method: "get",
    url: "/activitys",
  });
};
// 获取商品列表
export const getGoodsListAPI = () => {
  return request({
    methods: "get",
    url: "/goods",
  });
};
// 秒杀列表
export const getSecondskillListAPI = () => {
  return request({
    method: "get",
    url: "/seconds",
  });
};
//  获取轮播图
export const RotationChartListAPI = () => {
  return request({
    method: "get",
    url: "/swiper",
  });
};
// 商品详情接口
export const getGoodsDetailAPI = (id) => {
  return request({
    url: "/goodsDetail",
    method: "get",
    params: id,
  });
};
